#include <QtGui>
#include <QtSql>

 class StaffModel : public QSqlQueryModel {
     Q_OBJECT
 public:
     StaffModel(QObject *parent = 0);
     Qt::ItemFlags flags(const QModelIndex &index) const;
     QVariant data(const QModelIndex &index,
                   int role = Qt::DisplayRole) const;
     int user_id;
     int department;
     int status_user;
     void refresh();
};

